<tpl> include file='sys_config.head.html' </tpl>
<div id="doc3">
	<div id="yui-main">
		<div class="yui-g">
 			<div id="divinbox">
				<div class="gtlbar">
					<div class="gtlbar-left">
						账户信息 &gt;&gt; <tpl> $obj_array.realname </tpl>
					</div>
				</div>
			</div>
			<form action="bank.manage.php" id="form_del" name="form_del" method="post">
			<input type="hidden" name="action" id="action" value="del" />
			<input type="hidden" name="objId" value="<tpl> $objId </tpl>">
			<input type="hidden" name="objType" value="<tpl> $objType </tpl>">
			<div class="fixbgwhite">
				<table class="es" id="bianse">
					<tr class="es-tr">
						<td class="es-6">选择</td>
						<td class="es-3">开户名称</td>
						<td class="es-3">银行卡号</td>
						<td class="es-3">开户行全称</td>
						<td class="es-3">银行地址</td>
						<td class="es-2">提交日期</td>
						<td class="es-2">操作</td>
					</tr>
					<tpl> if $bank_array[0].id neq '' </tpl>
					<tpl> section name=loop loop=$bank_array </tpl>
					<tr class="es-td">
						<td ><input type="checkbox" name="id[]" value="<tpl> $bank_array[loop].id </tpl>"></td>
						<td id="realname_<tpl> $bank_array[loop].id </tpl>"><tpl> $bank_array[loop].realname </tpl></td>
						<td id="cardno_<tpl> $bank_array[loop].id </tpl>"><tpl> $bank_array[loop].cardno </tpl></td>
						<td id="bankname_<tpl> $bank_array[loop].id </tpl>"><tpl> $bank_array[loop].bankname </tpl></td>
						<td id="bankaddress_<tpl> $bank_array[loop].id </tpl>"><tpl> $bank_array[loop].bankaddress </tpl></td>
						<td ><tpl> $bank_array[loop].create_time </tpl></td>
						<td >
							<a href="javascript:void()" onclick="modi_bank(<tpl> $bank_array[loop].id </tpl>)">修改</a>
						</td>
					</tr>
					<tpl> /section </tpl>
					<tpl> /if </tpl>
				</table>
			</div>
			<tpl> if $bank_array[0].id eq '' </tpl>
				<div class="msk-wi">
					<div class="msk">暂无相关信息</div>
				</div>
			<tpl> /if </tpl>
			<div class="ibxbot">
				<div class="fle">
					<b>选择:</b>
					<a href="javascript:;" onclick="sel_all_checkbox('form_del');">全选</a> - <a href="javascript:;" onclick="sel_negative_checkbox('form_del');">反选</a> - <a href="javascript:;" onclick="sel_none_checkbox('form_del');">不选</a>
				</div>
				<div class="fri">
					<tpl> if $project_array[0].id neq '' </tpl>
					<tpl> $page_list </tpl>
					<tpl> /if </tpl>
				</div>
			</div>
			<div class="ibxbar">
				<input class="bthl" value="删除" type="submit" />
			</div>
			</form>
			<br>
			<div id="divinbox">
				<div class="gtlbar">
					<div class="gtlbar-left">
						添加账户信息
					</div>
				</div>
			</div>
			<div class="ctge">
				<div class="ctge-1">
					<form action="bank.manage.php?action=save" method="post" id="addForm" name="form1" >
					<input type="hidden" name="objId" value="<tpl> $objId </tpl>">
					<input type="hidden" name="objType" value="<tpl> $objType </tpl>">
					<input type="hidden" name="hidId" id="hidId" value="">
					<div class="ctge-1-1">
					<table cellSpacing="0" cellPadding="0" class="fct" border="0">
						<tr>
							<th>开户名称</th>
							<td><input class="fct-input" name="realname" id="realname" type="text" maxlength="80"/></td>
                            <th>银行卡号</th>
                            <td><input class="fct-input" name="cardno" id="cardno" type="text" /></td>
                        </tr>
                        <tr>
                            <th>开户行全称</th>
                            <td><input class="fct-input" name="bankname" id="bankname" type="text" /></td>
                            <th>银行地址</th>
                            <td><input class="fct-input" name="bankaddress" id="bankaddress" type="text" /></td>
                        </tr>
					</table>
					
					</div>
					<div class="bth-ct">
						<div class="bth-pl">
							<input class="bthl" id="subBtn" value="添加" type="submit" />
						</div>
					</div>
				</form>
				</div>
			</div>	
		</div>
	</div>
</div>
<tpl> include file='sys_config.js.html' </tpl>
<script type="text/javascript">
function modi_bank(bid){
	var realname = $('#realname_'+bid).html();
	var cardno = $('#cardno_'+bid).html();
	var bankname = $('#bankname_'+bid).html();
	var bankaddress = $('#bankaddress_'+bid).html();
	
	$('#hidId').val(bid);
	$('#realname').val(realname);
	$('#cardno').val(cardno);
	$('#bankname').val(bankname);
	$('#bankaddress').val(bankaddress);
	
	$('#addForm').attr('action', 'bank.manage.php?action=update');
	$('#subBtn').val('修改');
}
</script>
</body>
</html>
